define({ "api": [
  {
    "type": "local",
    "url": "init(wrapperId,targetServerUrl,show)",
    "title": "init",
    "group": "yozoWebOffice",
    "version": "0.0.1",
    "name": "_______",
    "description": "<p>初始化代理对象</p>",
    "examples": [
      {
        "title": "示例",
        "content": "var yozoWebOffice=yozowop.init(\"wrapperId\",\"http://172.18.0.45:9090\",true);",
        "type": "js"
      }
    ],
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "wrapperId",
            "description": "<p>用来容纳weboffice页面的容器元素的ID</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "targetServerUrl",
            "description": "<p>weboffice服务的url地址，要包含contextPath</p>"
          },
          {
            "group": "Parameter",
            "type": "Boolean",
            "optional": true,
            "field": "show",
            "defaultValue": "false",
            "description": "<p>是否显示，如果为false，则只能调用部分方法，调用需要操作weboffice界面的方法会报错， 比如addBookmark方法，必须在weboffice显示并且有文档打开以后调用才有用</p>"
          }
        ]
      }
    },
    "filename": "E:/workspace/WebstormProjects/yozowebofficeplugin/src/yozoWebOffice.ts",
    "groupTitle": "yozoWebOffice"
  },
  {
    "type": "local",
    "url": "acceptAllRevisions()",
    "title": "acceptAllRevisions",
    "group": "yozoWebOffice",
    "version": "0.0.1",
    "name": "acceptAllRevisions__",
    "description": "<p>接收痕迹</p>",
    "examples": [
      {
        "title": "示例",
        "content": " yozoWebOffice.acceptAllRevisions().then(result=>{\n    if(result.errorCode==='0'){\n        do something.....\n    }\n},error=>{\n\n});",
        "type": "js"
      }
    ],
    "filename": "E:/workspace/WebstormProjects/yozowebofficeplugin/src/yozoWebOffice.ts",
    "groupTitle": "yozoWebOffice",
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "errorCode",
            "description": "<p>结果代码 '0':代表成功，'-1':代表失败，其他值为weboffice服务器返回的其他错误代码</p>"
          },
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "errorMessage",
            "description": "<p>结果信息</p>"
          },
          {
            "group": "Success 200",
            "type": "Object",
            "optional": true,
            "field": "result",
            "description": "<p>返回结果正主，可以是任意值，和具体方法有关</p>"
          }
        ]
      }
    }
  },
  {
    "type": "local",
    "url": "addBookmark(name)",
    "title": "addBookmark",
    "group": "yozoWebOffice",
    "version": "0.0.1",
    "name": "addBookmark_name_",
    "description": "<p>在文档中的当前选中位置添加一个书签</p>",
    "examples": [
      {
        "title": "示例",
        "content": " yozoWebOffice.addBookmark(\"bookmark1\").then(result=>{\n    if(result.errorCode==='0'){\n        do something.....\n    }\n},error=>{\n\n});",
        "type": "js"
      }
    ],
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "name",
            "description": "<p>书签</p>"
          }
        ]
      }
    },
    "filename": "E:/workspace/WebstormProjects/yozowebofficeplugin/src/yozoWebOffice.ts",
    "groupTitle": "yozoWebOffice",
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "errorCode",
            "description": "<p>结果代码 '0':代表成功，'-1':代表失败，其他值为weboffice服务器返回的其他错误代码</p>"
          },
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "errorMessage",
            "description": "<p>结果信息</p>"
          },
          {
            "group": "Success 200",
            "type": "Object",
            "optional": true,
            "field": "result",
            "description": "<p>返回结果正主，可以是任意值，和具体方法有关</p>"
          }
        ]
      }
    }
  },
  {
    "type": "local",
    "url": "allFileList(dirPath)",
    "title": "allFileList",
    "group": "yozoWebOffice",
    "version": "0.0.1",
    "name": "allFileList_dirPath_",
    "description": "<p>获取某个路径下的所有文件</p>",
    "examples": [
      {
        "title": "示例",
        "content": " yozoWebOffice.allFileList(\"/demo\").then(result=>{\n    if(result.errorCode==='0'){\n        do something.....\n    }\n},error=>{\n\n});",
        "type": "js"
      }
    ],
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "String",
            "optional": true,
            "field": "dirPath",
            "description": "<p>相对路径</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "返回结果",
          "content": "{\n    \"result\": [\n    {\n    \"path\": \"/webofficeFiles/2f5428e4-da21-4e78-bf43-7992552562fa.doc\",\n    \"modify\": \"2019-08-02 09:06:25.0\",\n    \"size\": 20992,\n    \"name\": \"2f5428e4-da21-4e78-bf43-7992552562fa.doc\",\n    \"isDir\": 0\n    },\n    {\n    \"path\": \"/webofficeFiles/a5c6b0e4-0ef1-488c-82b6-5b7ef438f343.doc\",\n    \"modify\": \"2019-08-02 09:07:40.0\",\n    \"size\": 11776,\n    \"name\": \"a5c6b0e4-0ef1-488c-82b6-5b7ef438f343.doc\",\n    \"isDir\": 0\n    }\n    ],\n\"errorMessage\": \"无错误\",\n\"errorCode\": \"0\"\n}",
          "type": "json"
        }
      ],
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "errorCode",
            "description": "<p>结果代码 '0':代表成功，'-1':代表失败，其他值为weboffice服务器返回的其他错误代码</p>"
          },
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "errorMessage",
            "description": "<p>结果信息</p>"
          },
          {
            "group": "Success 200",
            "type": "Object",
            "optional": true,
            "field": "result",
            "description": "<p>返回结果正主，可以是任意值，和具体方法有关</p>"
          }
        ]
      }
    },
    "filename": "E:/workspace/WebstormProjects/yozowebofficeplugin/src/yozoWebOffice.ts",
    "groupTitle": "yozoWebOffice"
  },
  {
    "type": "local",
    "url": "closeFile(fileId,saveFlag)",
    "title": "closeFile",
    "group": "yozoWebOffice",
    "version": "0.0.1",
    "name": "closeFile_fileId_saveFlag_",
    "description": "<p>关闭某个打开的文档</p>",
    "examples": [
      {
        "title": "示例",
        "content": " yozoWebOffice.closeFile(\"123456fsdfa\",true).then(result=>{\n    if(result.errorCode==='0'){\n        do something.....\n    }\n},error=>{\n\n});",
        "type": "js"
      }
    ],
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "fileId",
            "description": "<p>文档ID 如果只想关闭一个文档，fileId的类型为String; 如果想要关闭多个文档，fileId的类型为String[]。</p>"
          },
          {
            "group": "Parameter",
            "type": "Boolean",
            "optional": true,
            "field": "saveFlag",
            "defaultValue": "true",
            "description": "<p>是否保存文档，true：保存该文档；false：以打开文档时的saveFlag为准</p>"
          }
        ]
      }
    },
    "filename": "E:/workspace/WebstormProjects/yozowebofficeplugin/src/yozoWebOffice.ts",
    "groupTitle": "yozoWebOffice",
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "errorCode",
            "description": "<p>结果代码 '0':代表成功，'-1':代表失败，其他值为weboffice服务器返回的其他错误代码</p>"
          },
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "errorMessage",
            "description": "<p>结果信息</p>"
          },
          {
            "group": "Success 200",
            "type": "Object",
            "optional": true,
            "field": "result",
            "description": "<p>返回结果正主，可以是任意值，和具体方法有关</p>"
          }
        ]
      }
    }
  },
  {
    "type": "local",
    "url": "createFile(fileType,fileName,filePath)",
    "title": "createFile",
    "group": "yozoWebOffice",
    "version": "0.0.1",
    "name": "createFile_fileType_fileName_filePath_",
    "description": "<p>在weboffice服务器上创建一个文档</p>",
    "examples": [
      {
        "title": "示例",
        "content": " yozoWebOffice.createFile(\"1\",\"hello_world.doc\",\"/hello_world.doc\").then(result=>{\n    if(result.errorCode==='0'){\n        do something.....\n    }\n},error=>{\n\n});",
        "type": "js"
      }
    ],
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "fileType",
            "defaultValue": "1",
            "description": "<p>新建文件类型 （1：新建表格；2：新建文档；4：新建PPT）</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": true,
            "field": "fileName",
            "description": "<p>新建文件名称</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": true,
            "field": "filePath",
            "description": "<p>文档路径</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "返回结果",
          "content": "{\n  \"result\": {\n       \"filePath\":\"/fdsaftefsdfsa.docx\"\n  },\n \"errorMessage\": \"无错误\",\n \"errorCode\": \"0\"\n }",
          "type": "json"
        }
      ],
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "errorCode",
            "description": "<p>结果代码 '0':代表成功，'-1':代表失败，其他值为weboffice服务器返回的其他错误代码</p>"
          },
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "errorMessage",
            "description": "<p>结果信息</p>"
          },
          {
            "group": "Success 200",
            "type": "Object",
            "optional": true,
            "field": "result",
            "description": "<p>返回结果正主，可以是任意值，和具体方法有关</p>"
          }
        ]
      }
    },
    "filename": "E:/workspace/WebstormProjects/yozowebofficeplugin/src/yozoWebOffice.ts",
    "groupTitle": "yozoWebOffice"
  },
  {
    "type": "local",
    "url": "deleteBookmark(name)",
    "title": "deleteBookmark",
    "group": "yozoWebOffice",
    "version": "0.0.1",
    "name": "deleteBookmark_name_",
    "description": "<p>删除指定名称的书签</p>",
    "examples": [
      {
        "title": "示例",
        "content": " yozoWebOffice.deleteBookmark(\"bookmark1\").then(result=>{\n    if(result.errorCode==='0'){\n        do something.....\n    }\n},error=>{\n\n});",
        "type": "js"
      }
    ],
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "name",
            "description": "<p>书签</p>"
          }
        ]
      }
    },
    "filename": "E:/workspace/WebstormProjects/yozowebofficeplugin/src/yozoWebOffice.ts",
    "groupTitle": "yozoWebOffice",
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "errorCode",
            "description": "<p>结果代码 '0':代表成功，'-1':代表失败，其他值为weboffice服务器返回的其他错误代码</p>"
          },
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "errorMessage",
            "description": "<p>结果信息</p>"
          },
          {
            "group": "Success 200",
            "type": "Object",
            "optional": true,
            "field": "result",
            "description": "<p>返回结果正主，可以是任意值，和具体方法有关</p>"
          }
        ]
      }
    }
  },
  {
    "type": "local",
    "url": "deleteFile(filePath)",
    "title": "deleteFile",
    "group": "yozoWebOffice",
    "version": "0.0.1",
    "name": "deleteFile_filePath_",
    "description": "<p>删除一个文档</p>",
    "examples": [
      {
        "title": "示例",
        "content": " yozoWebOffice.deleteFile(\"/hello_world.doc\").then(result=>{\n    if(result.errorCode==='0'){\n        do something.....\n    }\n},error=>{\n\n});",
        "type": "js"
      }
    ],
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "filePath",
            "description": "<p>文档路径</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": true,
            "field": "password",
            "description": "<p>目录密码</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": true,
            "field": "dirName",
            "description": "<p>所在目录</p>"
          }
        ]
      }
    },
    "filename": "E:/workspace/WebstormProjects/yozowebofficeplugin/src/yozoWebOffice.ts",
    "groupTitle": "yozoWebOffice",
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "errorCode",
            "description": "<p>结果代码 '0':代表成功，'-1':代表失败，其他值为weboffice服务器返回的其他错误代码</p>"
          },
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "errorMessage",
            "description": "<p>结果信息</p>"
          },
          {
            "group": "Success 200",
            "type": "Object",
            "optional": true,
            "field": "result",
            "description": "<p>返回结果正主，可以是任意值，和具体方法有关</p>"
          }
        ]
      }
    }
  },
  {
    "type": "local",
    "url": "downloadFile(filePath,isDeleteFile)",
    "title": "downloadFile",
    "group": "yozoWebOffice",
    "version": "0.0.1",
    "name": "downloadFile_filePath_isDeleteFile_",
    "description": "<p>从weboffice下载文档</p>",
    "examples": [
      {
        "title": "示例",
        "content": "yozoWebOffice.downloadFile(\"/demo.doc\");",
        "type": "js"
      }
    ],
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "filePath",
            "description": "<p>文件的相对路径</p>"
          },
          {
            "group": "Parameter",
            "type": "Boolean",
            "optional": true,
            "field": "isDeleteFile",
            "defaultValue": "false",
            "description": "<p>是否在文件下载后删除该文件（默认为false）； true：下载后删除该文件； false：下载后不删除该文件。</p>"
          }
        ]
      }
    },
    "filename": "E:/workspace/WebstormProjects/yozowebofficeplugin/src/yozoWebOffice.ts",
    "groupTitle": "yozoWebOffice"
  },
  {
    "type": "local",
    "url": "execCommand(command)",
    "title": "execCommand",
    "group": "yozoWebOffice",
    "version": "0.0.1",
    "name": "execCommand_command_",
    "description": "<p>将参数字符串发送到Weboffice页面并转换成相应的命令执行</p>",
    "examples": [
      {
        "title": "示例1",
        "content": " yozoWebOffice.execCommand(\"YozoOffice.Application.ActiveDocument.Bookmarks.Add('PO_title')\").then(result=>{\n    if(result.errorCode==='0'){\n        do something.....\n    }\n},error=>{\n\n});",
        "type": "js"
      },
      {
        "title": "示例2",
        "content": " yozoWebOffice.execCommand(\"function(){YozoOffice.Application.ActiveDocument.Bookmarks.Add('PO_title');}\").then(result=>{\n    if(result.errorCode==='0'){\n        do something.....\n    }\n},error=>{\n\n});",
        "type": "js"
      },
      {
        "title": "示例3",
        "content": " yozoWebOffice.execCommand(function(){YozoOffice.Application.ActiveDocument.Bookmarks.Add('PO_title');}).then(result=>{\n    if(result.errorCode==='0'){\n        do something.....\n    }\n},error=>{\n\n});",
        "type": "js"
      }
    ],
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "command",
            "description": "<p>要执行的命令，可以是一条命令，也可以是且仅是匿名函数</p>"
          }
        ]
      }
    },
    "filename": "E:/workspace/WebstormProjects/yozowebofficeplugin/src/yozoWebOffice.ts",
    "groupTitle": "yozoWebOffice",
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "errorCode",
            "description": "<p>结果代码 '0':代表成功，'-1':代表失败，其他值为weboffice服务器返回的其他错误代码</p>"
          },
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "errorMessage",
            "description": "<p>结果信息</p>"
          },
          {
            "group": "Success 200",
            "type": "Object",
            "optional": true,
            "field": "result",
            "description": "<p>返回结果正主，可以是任意值，和具体方法有关</p>"
          }
        ]
      }
    }
  },
  {
    "type": "local",
    "url": "getAllBookmarkValue()",
    "title": "getAllBookmarkValue",
    "group": "yozoWebOffice",
    "version": "0.0.1",
    "name": "getAllBookmarkValue__",
    "description": "<p>获取某个书签的值</p>",
    "examples": [
      {
        "title": "示例",
        "content": " yozoWebOffice.getAllBookmarkValue().then(result=>{\n    if(result.errorCode==='0'){\n        do something.....\n    }\n},error=>{\n\n});",
        "type": "js"
      }
    ],
    "filename": "E:/workspace/WebstormProjects/yozowebofficeplugin/src/yozoWebOffice.ts",
    "groupTitle": "yozoWebOffice",
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "errorCode",
            "description": "<p>结果代码 '0':代表成功，'-1':代表失败，其他值为weboffice服务器返回的其他错误代码</p>"
          },
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "errorMessage",
            "description": "<p>结果信息</p>"
          },
          {
            "group": "Success 200",
            "type": "Object",
            "optional": true,
            "field": "result",
            "description": "<p>返回结果正主，可以是任意值，和具体方法有关</p>"
          }
        ]
      }
    }
  },
  {
    "type": "local",
    "url": "getBookmarkValue(name)",
    "title": "getBookmarkValue",
    "group": "yozoWebOffice",
    "version": "0.0.1",
    "name": "getBookmarkValue_name_",
    "description": "<p>获取某个书签的值</p>",
    "examples": [
      {
        "title": "示例",
        "content": " yozoWebOffice.getBookmarkValue(\"bookmark1\").then(result=>{\n    if(result.errorCode==='0'){\n        do something.....\n    }\n},error=>{\n\n});",
        "type": "js"
      }
    ],
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "name",
            "description": "<p>书签</p>"
          }
        ]
      }
    },
    "filename": "E:/workspace/WebstormProjects/yozowebofficeplugin/src/yozoWebOffice.ts",
    "groupTitle": "yozoWebOffice",
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "errorCode",
            "description": "<p>结果代码 '0':代表成功，'-1':代表失败，其他值为weboffice服务器返回的其他错误代码</p>"
          },
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "errorMessage",
            "description": "<p>结果信息</p>"
          },
          {
            "group": "Success 200",
            "type": "Object",
            "optional": true,
            "field": "result",
            "description": "<p>返回结果正主，可以是任意值，和具体方法有关</p>"
          }
        ]
      }
    }
  },
  {
    "type": "local",
    "url": "getParentPath()",
    "title": "getParentPath",
    "group": "yozoWebOffice",
    "version": "0.0.1",
    "name": "getParentPath__",
    "description": "<p>获取weboffice服务器存放文件的根目录</p>",
    "examples": [
      {
        "title": "示例",
        "content": " yozoWebOffice.getParentPath().then(result=>{\n    if(result.errorCode==='0'){\n        do something.....\n    }\n},error=>{\n\n});",
        "type": "js"
      }
    ],
    "filename": "E:/workspace/WebstormProjects/yozowebofficeplugin/src/yozoWebOffice.ts",
    "groupTitle": "yozoWebOffice",
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "errorCode",
            "description": "<p>结果代码 '0':代表成功，'-1':代表失败，其他值为weboffice服务器返回的其他错误代码</p>"
          },
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "errorMessage",
            "description": "<p>结果信息</p>"
          },
          {
            "group": "Success 200",
            "type": "Object",
            "optional": true,
            "field": "result",
            "description": "<p>返回结果正主，可以是任意值，和具体方法有关</p>"
          }
        ]
      }
    }
  },
  {
    "type": "local",
    "url": "hideRevisions()",
    "title": "hideRevisions",
    "group": "yozoWebOffice",
    "version": "0.0.1",
    "name": "hideRevisions__",
    "description": "<p>隐藏痕迹</p>",
    "examples": [
      {
        "title": "示例",
        "content": " yozoWebOffice.hideRevisions().then(result=>{\n    if(result.errorCode==='0'){\n        do something.....\n    }\n},error=>{\n\n});",
        "type": "js"
      }
    ],
    "filename": "E:/workspace/WebstormProjects/yozowebofficeplugin/src/yozoWebOffice.ts",
    "groupTitle": "yozoWebOffice",
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "errorCode",
            "description": "<p>结果代码 '0':代表成功，'-1':代表失败，其他值为weboffice服务器返回的其他错误代码</p>"
          },
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "errorMessage",
            "description": "<p>结果信息</p>"
          },
          {
            "group": "Success 200",
            "type": "Object",
            "optional": true,
            "field": "result",
            "description": "<p>返回结果正主，可以是任意值，和具体方法有关</p>"
          }
        ]
      }
    }
  },
  {
    "type": "local",
    "url": "isOpened(fileId)",
    "title": "isOpened",
    "group": "yozoWebOffice",
    "version": "0.0.1",
    "name": "isOpened_fileId_",
    "description": "<p>判断一个文档是否打开</p>",
    "examples": [
      {
        "title": "示例",
        "content": " yozoWebOffice.isOpened(\"123456fsdfa\").then(result=>{\n    if(result.errorCode==='0'){\n        do something.....\n    }\n},error=>{\n\n});",
        "type": "js"
      }
    ],
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "fileId",
            "description": "<p>文档ID</p>"
          }
        ]
      }
    },
    "filename": "E:/workspace/WebstormProjects/yozowebofficeplugin/src/yozoWebOffice.ts",
    "groupTitle": "yozoWebOffice",
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "errorCode",
            "description": "<p>结果代码 '0':代表成功，'-1':代表失败，其他值为weboffice服务器返回的其他错误代码</p>"
          },
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "errorMessage",
            "description": "<p>结果信息</p>"
          },
          {
            "group": "Success 200",
            "type": "Object",
            "optional": true,
            "field": "result",
            "description": "<p>返回结果正主，可以是任意值，和具体方法有关</p>"
          }
        ]
      }
    }
  },
  {
    "type": "local",
    "url": "locateBookmark(name)",
    "title": "locateBookmark",
    "group": "yozoWebOffice",
    "version": "0.0.1",
    "name": "locateBookmark_name_",
    "description": "<p>定位书签位置</p>",
    "examples": [
      {
        "title": "示例",
        "content": " yozoWebOffice.locateBookmark(\"bookmark1\").then(result=>{\n    if(result.errorCode==='0'){\n        do something.....\n    }\n},error=>{\n\n});",
        "type": "js"
      }
    ],
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "name",
            "description": "<p>书签名字</p>"
          }
        ]
      }
    },
    "filename": "E:/workspace/WebstormProjects/yozowebofficeplugin/src/yozoWebOffice.ts",
    "groupTitle": "yozoWebOffice",
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "errorCode",
            "description": "<p>结果代码 '0':代表成功，'-1':代表失败，其他值为weboffice服务器返回的其他错误代码</p>"
          },
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "errorMessage",
            "description": "<p>结果信息</p>"
          },
          {
            "group": "Success 200",
            "type": "Object",
            "optional": true,
            "field": "result",
            "description": "<p>返回结果正主，可以是任意值，和具体方法有关</p>"
          }
        ]
      }
    }
  },
  {
    "type": "local",
    "url": "openFile(opts)",
    "title": "openFile",
    "group": "yozoWebOffice",
    "version": "0.0.1",
    "name": "openFile_opts_",
    "description": "<p>根据提供的参数打开一个weboffice的文档</p>",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "fileId",
            "description": "<p>文档ID</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "filePath",
            "description": "<p>文档路径</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": true,
            "field": "userId",
            "description": "<p>用户id</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": true,
            "field": "userName",
            "defaultValue": "userId",
            "description": "<p>用户名。</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": true,
            "field": "userAvatar",
            "description": "<p>用户头像的地址。（默认使用WebOffice内置的头像）</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": true,
            "field": "fileName",
            "description": "<p>文档名（默认从filePath中截取）</p>"
          },
          {
            "group": "Parameter",
            "type": "Boolean",
            "optional": true,
            "field": "readOnly",
            "defaultValue": "false",
            "description": "<p>true：以只读模式打开文档false：以编辑模式打开文档</p>"
          },
          {
            "group": "Parameter",
            "type": "Boolean",
            "optional": true,
            "field": "mobileFlag",
            "defaultValue": "false",
            "description": "<p>true：移动端 false：PC端</p>"
          },
          {
            "group": "Parameter",
            "type": "Boolean",
            "optional": true,
            "field": "saveFlag",
            "defaultValue": "true",
            "description": "<p>true：自动保存文档 false：不自动保存文档</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": true,
            "field": "callbackUrl",
            "description": "<p>回调地址。 如果为null，不会进行任何操作； 如果不为null，WebOffice会在关闭该文档后向此地址发送HTTP请求以进行通知， 请求带有3个参数：userId（String或List<String>，所有打开过此文档的用户的id）、fileId和filePath。（默认为null）</p>"
          },
          {
            "group": "Parameter",
            "type": "Object",
            "optional": true,
            "field": "extraData",
            "description": "<p>Object\t    用于安全性。 可以为null，也可以是任意类型的数据。 用户可以通过提供的静态工具方法WebOffice. getExtraData(String fileId, String userId)来获取。（默认为null）</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "参数示例",
          "content": "{\n    fileId:'id',\n    filePath:'/hello_world.doc',\n    userId:'1',\n    userName:'张三',\n    userAvatar:'/avatar.jpg',\n    fileName:'hello_world.doc',\n    readOnly:false,\n    mobileFlag:false,\n    saveFlag:true,\n    callbackUrl:'http://ip:port/URI',\n    extraData:{userId:'1'}\n}",
          "type": "object"
        }
      ]
    },
    "examples": [
      {
        "title": "示例",
        "content": "yozoWebOffice.openFile({fileId:'id',filePath:'/hello_world.doc'}).then(result=>{\n    if(result.errorCode==='0'){\n        do something.....\n    }\n},error=>{\n\n})",
        "type": "js"
      }
    ],
    "filename": "E:/workspace/WebstormProjects/yozowebofficeplugin/src/yozoWebOffice.ts",
    "groupTitle": "yozoWebOffice",
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "errorCode",
            "description": "<p>结果代码 '0':代表成功，'-1':代表失败，其他值为weboffice服务器返回的其他错误代码</p>"
          },
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "errorMessage",
            "description": "<p>结果信息</p>"
          },
          {
            "group": "Success 200",
            "type": "Object",
            "optional": true,
            "field": "result",
            "description": "<p>返回结果正主，可以是任意值，和具体方法有关</p>"
          }
        ]
      }
    }
  },
  {
    "type": "local",
    "url": "print()",
    "title": "print",
    "group": "yozoWebOffice",
    "version": "0.0.1",
    "name": "print__",
    "description": "<p>打印文档</p>",
    "examples": [
      {
        "title": "示例",
        "content": " yozoWebOffice.print().then(result=>{\n    if(result.errorCode==='0'){\n        do something.....\n    }\n},error=>{\n\n});",
        "type": "js"
      }
    ],
    "filename": "E:/workspace/WebstormProjects/yozowebofficeplugin/src/yozoWebOffice.ts",
    "groupTitle": "yozoWebOffice",
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "errorCode",
            "description": "<p>结果代码 '0':代表成功，'-1':代表失败，其他值为weboffice服务器返回的其他错误代码</p>"
          },
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "errorMessage",
            "description": "<p>结果信息</p>"
          },
          {
            "group": "Success 200",
            "type": "Object",
            "optional": true,
            "field": "result",
            "description": "<p>返回结果正主，可以是任意值，和具体方法有关</p>"
          }
        ]
      }
    }
  },
  {
    "type": "local",
    "url": "rejectAllRevisions()",
    "title": "rejectAllRevisions",
    "group": "yozoWebOffice",
    "version": "0.0.1",
    "name": "rejectAllRevisions__",
    "description": "<p>拒绝痕迹</p>",
    "examples": [
      {
        "title": "示例",
        "content": " yozoWebOffice.rejectAllRevisions().then(result=>{\n    if(result.errorCode==='0'){\n        do something.....\n    }\n},error=>{\n\n});",
        "type": "js"
      }
    ],
    "filename": "E:/workspace/WebstormProjects/yozowebofficeplugin/src/yozoWebOffice.ts",
    "groupTitle": "yozoWebOffice",
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "errorCode",
            "description": "<p>结果代码 '0':代表成功，'-1':代表失败，其他值为weboffice服务器返回的其他错误代码</p>"
          },
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "errorMessage",
            "description": "<p>结果信息</p>"
          },
          {
            "group": "Success 200",
            "type": "Object",
            "optional": true,
            "field": "result",
            "description": "<p>返回结果正主，可以是任意值，和具体方法有关</p>"
          }
        ]
      }
    }
  },
  {
    "type": "local",
    "url": "saveFile()",
    "title": "saveFile",
    "group": "yozoWebOffice",
    "version": "0.0.1",
    "name": "saveFile__",
    "description": "<p>保存当前打开的office文档</p>",
    "examples": [
      {
        "title": "示例",
        "content": " yozoWebOffice.saveFile().then(result=>{\n    if(result.errorCode==='0'){\n        do something.....\n    }\n},error=>{\n\n});",
        "type": "js"
      }
    ],
    "filename": "E:/workspace/WebstormProjects/yozowebofficeplugin/src/yozoWebOffice.ts",
    "groupTitle": "yozoWebOffice",
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "errorCode",
            "description": "<p>结果代码 '0':代表成功，'-1':代表失败，其他值为weboffice服务器返回的其他错误代码</p>"
          },
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "errorMessage",
            "description": "<p>结果信息</p>"
          },
          {
            "group": "Success 200",
            "type": "Object",
            "optional": true,
            "field": "result",
            "description": "<p>返回结果正主，可以是任意值，和具体方法有关</p>"
          }
        ]
      }
    }
  },
  {
    "type": "local",
    "url": "setBookmarkValue(name,value)",
    "title": "setBookmarkValue",
    "group": "yozoWebOffice",
    "version": "0.0.1",
    "name": "setBookmarkValue_name_value_",
    "description": "<p>在某个书签位置插入值</p>",
    "examples": [
      {
        "title": "示例",
        "content": " yozoWebOffice.setBookmarkValue(\"bookmark1\",\"test\").then(result=>{\n    if(result.errorCode==='0'){\n        do something.....\n    }\n},error=>{\n\n});",
        "type": "js"
      }
    ],
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "name",
            "description": "<p>书签名字</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "value",
            "description": "<p>要插入的值</p>"
          }
        ]
      }
    },
    "filename": "E:/workspace/WebstormProjects/yozowebofficeplugin/src/yozoWebOffice.ts",
    "groupTitle": "yozoWebOffice",
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "errorCode",
            "description": "<p>结果代码 '0':代表成功，'-1':代表失败，其他值为weboffice服务器返回的其他错误代码</p>"
          },
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "errorMessage",
            "description": "<p>结果信息</p>"
          },
          {
            "group": "Success 200",
            "type": "Object",
            "optional": true,
            "field": "result",
            "description": "<p>返回结果正主，可以是任意值，和具体方法有关</p>"
          }
        ]
      }
    }
  },
  {
    "type": "local",
    "url": "showRevisions()",
    "title": "showRevisions",
    "group": "yozoWebOffice",
    "version": "0.0.1",
    "name": "showRevisions__",
    "description": "<p>显示痕迹</p>",
    "examples": [
      {
        "title": "示例",
        "content": " yozoWebOffice.showRevisions().then(result=>{\n    if(result.errorCode==='0'){\n        do something.....\n    }\n},error=>{\n\n});",
        "type": "js"
      }
    ],
    "filename": "E:/workspace/WebstormProjects/yozowebofficeplugin/src/yozoWebOffice.ts",
    "groupTitle": "yozoWebOffice",
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "errorCode",
            "description": "<p>结果代码 '0':代表成功，'-1':代表失败，其他值为weboffice服务器返回的其他错误代码</p>"
          },
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "errorMessage",
            "description": "<p>结果信息</p>"
          },
          {
            "group": "Success 200",
            "type": "Object",
            "optional": true,
            "field": "result",
            "description": "<p>返回结果正主，可以是任意值，和具体方法有关</p>"
          }
        ]
      }
    }
  },
  {
    "type": "local",
    "url": "trackRevisions(enable)",
    "title": "trackRevisions",
    "group": "yozoWebOffice",
    "version": "0.0.1",
    "name": "trackRevisions_enable_",
    "description": "<p>开始修订或者结束修订</p>",
    "examples": [
      {
        "title": "示例",
        "content": " yozoWebOffice.trackRevisions(true).then(result=>{\n    if(result.errorCode==='0'){\n        do something.....\n    }\n},error=>{\n\n});",
        "type": "js"
      }
    ],
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "Boolean",
            "optional": false,
            "field": "enable",
            "defaultValue": "true",
            "description": "<p>true:开始修订，false:结束修订</p>"
          }
        ]
      }
    },
    "filename": "E:/workspace/WebstormProjects/yozowebofficeplugin/src/yozoWebOffice.ts",
    "groupTitle": "yozoWebOffice",
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "errorCode",
            "description": "<p>结果代码 '0':代表成功，'-1':代表失败，其他值为weboffice服务器返回的其他错误代码</p>"
          },
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "errorMessage",
            "description": "<p>结果信息</p>"
          },
          {
            "group": "Success 200",
            "type": "Object",
            "optional": true,
            "field": "result",
            "description": "<p>返回结果正主，可以是任意值，和具体方法有关</p>"
          }
        ]
      }
    }
  },
  {
    "type": "local",
    "url": "uploadFile(filePath)",
    "title": "uploadFile",
    "group": "yozoWebOffice",
    "version": "0.0.1",
    "name": "uploadFile_filePath_",
    "description": "<p>上传文件到Weboffice服务器</p>",
    "examples": [
      {
        "title": "示例",
        "content": " yozoWebOffice.uploadFile(\"/demo.doc\").then(result=>{\n    if(result.errorCode==='0'){\n        do something.....\n    }\n},error=>{\n\n});",
        "type": "js"
      }
    ],
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "String",
            "optional": true,
            "field": "filePath",
            "description": "<p>上传文件服务器上的相对路径</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "返回结果",
          "content": "{\n    \"result\": {\n         \"filePath\": \"/81288-HR02-YYYY-nnn科创员工转正审批表.doc\",\n         \"fileId\": \"9bbcadfe00f44ff5ba2f8f308cccbb208\"\n     },\n\"errorMessage\": \"无错误\",\n\"errorCode\": \"0\"\n}",
          "type": "json"
        }
      ],
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "errorCode",
            "description": "<p>结果代码 '0':代表成功，'-1':代表失败，其他值为weboffice服务器返回的其他错误代码</p>"
          },
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "errorMessage",
            "description": "<p>结果信息</p>"
          },
          {
            "group": "Success 200",
            "type": "Object",
            "optional": true,
            "field": "result",
            "description": "<p>返回结果正主，可以是任意值，和具体方法有关</p>"
          }
        ]
      }
    },
    "filename": "E:/workspace/WebstormProjects/yozowebofficeplugin/src/yozoWebOffice.ts",
    "groupTitle": "yozoWebOffice"
  }
] });
